package con.ess.flutter.channel;

import android.content.Context;
import android.graphics.Color;
import android.view.View;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import io.flutter.plugin.platform.PlatformView;
import java.util.Map;

class NativeView implements PlatformView {
   @NonNull private final WebView mWebView;

    NativeView(@NonNull Context context, int id, @Nullable Map<String, Object> creationParams) {
        mWebView = new WebView(context);
        mWebView.setWebViewClient(new WebViewClient());
        mWebView.loadUrl("https://www.qq.com");
    }

    @NonNull
    @Override
    public View getView() {
        return mWebView;
    }

    @Override
    public void dispose() {}
}